# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=fsnoop
pkgver=3.4
pkgrel=2
groups=('blackarch' 'blackarch-scanner')
pkgdesc='A tool to monitor file operations on GNU/Linux systems by using the Inotify mechanism. Its primary purpose is to help detecting file race condition vulnerabilities and since version 3, to exploit them with loadable DSO modules (also called "payload modules" or "paymods").'
arch=('x86_64' 'aarch64')
url='http://vladz.devzero.fr/fsnoop.php'
license=('Beer-Ware')
depends=('glibc')
source=("http://vladz.devzero.fr/svn/projects/$pkgname/releases/$pkgname-$pkgver.tar.gz")
sha512sums=('20800c4edea020325456344290aaff3d3d5c01e8aca4953db4b6a9c322ace565c3a2d81e1a93acb65493f8bdc938eb5ec6ede797a4f2580b71c07c3c615a6497')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md todo.txt \
    ChangeLog
}

